const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/userinfo',(err)=>{
    if(err){
        console.log(err);
        return;
    }
    console.log('链接数据库成功')
});
module.exports = mongoose;